package com.hwz.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hwz.common.entity.OAuthToken;
import com.hwz.common.utils.PageUtils;
import com.hwz.gulimall.member.entity.MemberEntity;
import com.hwz.gulimall.member.entity.UserLoginVo;
import com.hwz.gulimall.member.exception.UserNameExistException;

import java.util.Map;

/**
 * 会员
 *
 * @author hwz
 * @email 1281561921@qq.com
 * @date 2025-05-28 13:25:49
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void checkUserNameExist(String username) throws UserNameExistException;

    void checkUserEmailExist(String email) throws UserNameExistException;

    MemberEntity login(UserLoginVo userLoginVo);

    MemberEntity oauthLogin(OAuthToken oAuthToken);
}

